package com.example.demo.jsonplacehoider;

import org.springframework.boot.sql.init.dependency.AbstractBeansOfTypeDatabaseInitializerDetector;


public class Post {
    private final Integer userId;
    private final Integer Id;
    private final String title;
    private final String body;

    public Post(Integer userId,Integer Id,String title,String body){
        this.userId =userId;
        this.Id =Id;
        this.title=title;
        this.body= body;
    }
    public Integer getId(){
        return Id;
    }
    public String getTitle(){
        return title;
    }
    public String getBody(){
        return body;
    }
    @Override
    public String toString(){
        return "Post{"+
                "userId="+userId+
                ",Id="+Id+
                ",title='"+title+'\''+
                ",body='"+body+'\''+
                '}';
    }
}
